<template>
	<view>
		<!-- 头部导航 开始 -->
		<view class="nav">
			<view class="navigate">
				<text>推荐</text>
				<text>附近的人</text>
				<view class="search" @click="search">
					<uni-icons type="search" size="34rpx" color="#ff007f"></uni-icons>
					搜索
				</view>
			</view>
		</view>
		<!-- 头部导航 结束 -->
	</view>
</template>

<script>
export default {
	name: 'my-navigationOne',
	data() {
		return {}
	},

	methods: {
		// 搜索
		search() {
			uni.navigateTo({
				url: '/subpkg/search/search'
			})
		}
	}
}
</script>

//
<style lang="less">
.nav {
	width: 100%;
	height: 70rpx;
	background-color: #fff;
	.navigate {
		position: relative;
		display: flex;
		align-items: center;
		& > text:nth-child(1) {
			font-size: 40rpx;
			font-weight: 600;
			margin: 0 30rpx;
			color: #ff007f;
		}
		& > text:nth-child(2) {
			font-size: 28rpx;
			color: #8f8f94;
		}
		.search {
			position: absolute;
			right: 30rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			width: 200rpx;
			height: 45rpx;
			font-size: 28rpx;
			border-radius: 20rpx;
			color: #ff007f;
			background-color: #ffeaf4;
		}
	}
}
</style>
